package com.example.ivory.accountbook.Activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.example.ivory.accountbook.R;
import com.example.ivory.accountbook.uilt.TittleManager;

/**
 * Created by Ivory on 2016/8/28.
 */
public class Set extends AppCompatActivity implements View.OnClickListener {
    Button security,currency,close,backup,clean_buf,problem,update;
    private TittleManager tittleManager;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set);
        tittleManager=new TittleManager(this);
        tittleManager.setTitleStyle(TittleManager.TitleStyle.ONLY_BACK,"设置");
        initView();
        initEvents();
    }
    public void initView(){
        security=(Button)findViewById(R.id.security);
        currency=(Button)findViewById(R.id.currency);
        close=(Button)findViewById(R.id.close);
        clean_buf=(Button)findViewById(R.id.clean_buf);
        problem=(Button)findViewById(R.id.problem);
        update=(Button)findViewById(R.id.update);
    }

    public void initEvents(){
        security.setOnClickListener(this);
        currency.setOnClickListener(this);
        close.setOnClickListener(this);
        clean_buf.setOnClickListener(this);
        problem.setOnClickListener(this);
        update.setOnClickListener(this);

    }
    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.security:
                break;
            case R.id.currency:
                break;
            case R.id.close:
                break;
            case R.id.clean_buf:
                break;
            case R.id.problem:
                break;
            case R.id.update:
                break;

        }
    }
}
